-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
libutil: Remove really dead code for git hashing #14602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
It's not being excersised by anything and already contains bugs (like the fact that copyRecursive only handles the first entry in a directory). Evidently, it can just be removed and was never used by anything.
|
There seems to have been some back-and-forth with this code #10084. Pretty sure it's actually dead this time? @Ericson2314 |
|
I need to keep spelunking, but are some of my unmerged PRs for more git tree hashing stuff |
| for (auto & [name, _] : accessor.readDirectory(from)) { | ||
| copyRecursive(accessor, from / name, dirSink, relDirPath / name); | ||
| break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the buggy line in question. break shouldn't be there
Ericson2314
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I end up needing this, we can revert.
|
Seems like there's a good use-case for |
Motivation
It's not being excersised by anything and already contains bugs (like the fact that copyRecursive only handles the first entry in a directory). Evidently, it can just be removed and was never used by anything.
Context
#14597 (comment)
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.